﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using DynSim.EntityFramework;
using DynSim.Basics;

namespace DynSim.Entities
{
    [Serializable]
    public class Clear : IEntity, IHideable
    {
        public string name { get; set; }

        public Color color;
        Game game;

        bool show = true;

        public Clear(Color color, Game game, string name)
        {
            this.name = name;

            this.color = color;
            this.game = game;
        }

        public void Draw(GameTime gameTime)
        {
            if (show)
                game.GraphicsDevice.Clear(color);
        }

        public void Initialize()
        {
            
        }

        public void Update(GameTime gameTime)
        {
           
        }

        public void Show()
        {
            this.show = true;
        }

        public void Hide()
        {
            this.show = false;
        }
    }
}
